﻿using project1113.Wrold;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static project1113.MainWindow;
using project1113;
using project1113.FSM;

namespace project1113.states
{
    public class UnsafeState:FsmState
    {
        FsmState _content;
        public UnsafeState(FsmState content) : base("unsafe")
        {
            _content = content;
        }
        public override void Init()
        {
            WorldModel.CurrentWorld.TTS.Speak("我已报警");

            
        }
        public override void DoSomething()
        {
            //throw new NotImplementedException();
            DisplayHelper.LoadPage("Emergence");
        }
        public override FsmState GetNextState()
        {
            return _content;
        }
    }
}
